import React from "react";
const Editor = (props) => {
    const {updateEntity} =props
    return (
        <div className="ui form">
            <div className="field">
                <textarea 
                placeholder="写点东西"
                 rows="5"
                //  react 非常接近原生js框架
                 onInput = {(event) => {updateEntity(event)}}
                 />
            </div>
        </div>
    )
}

export default Editor